package com.modifiertech.lineage.event;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.event.entity.player.PlayerEvent;

/**
 * ClassName: SkillLevelUpEvent <br/>
 * Description: <br/>
 * date: 2020/8/23 14:51<br/>
 *
 * @author Administrator<br />
 * @since JDK 1.8
 */
public class SkillLevelUpEvent extends PlayerEvent {
    private String skillName;
    private long upgradeLevel;

    public SkillLevelUpEvent(EntityPlayer player,String skillName,long upgradeLevel) {
        super(player);
        this.skillName=skillName;
        this.upgradeLevel=upgradeLevel;
    }

    public static class Pre extends SkillLevelUpEvent{


        public Pre(EntityPlayer player, String skillName, long upgradeLevel) {
            super(player, skillName, upgradeLevel);
        }
    }

    public static class Post extends SkillLevelUpEvent{

        public Post(EntityPlayer player, String skillName, long upgradeLevel) {
            super(player, skillName, upgradeLevel);
        }
    }

    public static class PostErr extends SkillLevelUpEvent{
        public PostErr(EntityPlayer player, String skillName, long upgradeLevel) {
            super(player, skillName, upgradeLevel);
        }
    }
    public String getSkillName() {
        return skillName;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName;
    }

    public long getUpgradeLevel() {
        return upgradeLevel;
    }

    public void setUpgradeLevel(long upgradeLevel) {
        this.upgradeLevel = upgradeLevel;
    }
}
